/* ===========================================================
			Resonance
	NPC Name: 		Kimu
	Map(s): 		Queen's Path: Forest of the Start 2 (130030001)
	Description: 	Quest - Welcome to Erev
=============================================================
Version 1.0 - Script Done.(15/6/2010)
=============================================================
*/

var status = -1;

function start(mode, type, selection) {
    status++;
	if (mode != 1) {
	    if(type == 1 && mode == 0)
		    status -= 2;
		else{
			qm.sendNext("Ahhh... are you really rejecting this request? I guarantee that as you follow our instructions and advices, #byou'll be able to raise your level that much quicker#k... Even if you have the quests you rejected, you'll get it back just by talking to us once more, so let me know if you want to change your mind.");
			qm.dispose();
			return;
		}
	}
	if(status == 0)
		qm.sendNext("Welcome to Erev! And your name is... Ah, #b#h0##k? Welcome, welcome! I've been waiting for someone like you. You're here to sign up for the Knights of #p1101000#, right? I am here through the Queen's order to guide you and other Nobless in this town.");
	if(status == 1)
		qm.sendNextPrev("In order for you to formally register as a member of the Knights of #p1101000#, you'll have to first meet with the Queen. She resides at the center of this island with #p1101001#. Before getting there, my brothers and I would like to teach you some #bbasic knowledge#k you'll need to know to survive in the world of Maple. Are you interested?");
	if(status == 2)
		qm.sendNextPrev("Oh, and just letting you know, what you'll be doing is a quest. The residents of Maple will give you requests from time to time, and that's called a #bquest#k. Once you successfully complete a quest, you'll be rewarded with EXP and/or items, so taking care of these quests will surely help you on your journey.");
	if(status == 3)
		qm.sendAcceptDecline("Okay, so are you ready to meet #b#p1102005##k, who's going to teach you the basics of hunting? Follow the arrow to the left and you'll see #p1102005#");
	if(status == 4){
		qm.forceStartQuest();
		qm.displayGuide(2);
		qm.dispose();
		}
	}
	
function end(mode, type, selection) {
    status++;
	if (mode != 1) {
	    if(type == 1 && mode == 0)
		    status -= 2;
		else{
		    qm.dispose();
			return;
		}
	}
	if(status == 0)
		qm.sendNext("Are you the Nobless that Kimu sent to me? Awesome! Nice to meet you! I'm Kisan. My older brother Kimu told me to give you this item as a reward. Press #bI#k to open the inventory and find out about it. Red ones recover HP and blue ones recover MP. It never hurts to learn how to use them in advance. \r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0# \r\n#i2000020# #t2000020# 5 \r\n#i2000021# #t2000021# 5 \r\n\r\n#fUI/UIWindow.img/QuestIcon/8/0# 15 exp");
	if(status == 1){
		qm.forceCompleteQuest();
		qm.gainItem(2000020, 5);
		qm.gainItem(2000021, 5);
		qm.gainExp(15);
		qm.displayGuide(3);
		qm.dispose();
	}
}
		